package com.attempt.grab.reach;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author xuhaifneg
 */
@SpringBootApplication(scanBasePackages = "com.attempt.grab", exclude = DataSourceAutoConfiguration.class)
public class GrabApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        new SpringApplicationBuilder(GrabApplication.class).headless(Boolean.FALSE).run(args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(GrabApplication.class);
    }

}
